<include file="Public:header" />

<div class="outside inner_banner" style="background:url('__PUBLIC__/images/banner1.jpg') top center"></div>
<div class="outside job">
    <div class="inner">
        <div class="job_list">
            <div class="table_style_dashed">
                <table class="table_style_dashed">
                    <tr>
                        <td width="10%" class="gray">月薪范围：</td>
                        <td>
                            <a href="javascript:void(0)" key="salary">不限</a>
                            <a href="javascript:void(0)" value="2000以下" key="salary">2000以下</a>
                            <a href="javascript:void(0)" value="2001-3000" key="salary">2001-3000</a>
                            <a href="javascript:void(0)" value="3001-4500" key="salary">3001-4500</a>
                            <a href="javascript:void(0)" value="4501-8000" key="salary">4501-8000</a>
                            <a href="javascript:void(0)" value="8001-10000" key="salary">8001-10000</a>
                            <a href="javascript:void(0)" value="10001-20000" key="salary">10001-20000</a>
                            <a href="javascript:void(0)" value="20000以上" key="salary">20000以上</a>
                        </td>
                    </tr>
                    <tr>
                        <td width="10%" class="gray">工作年限：</td>
                        <td>
                            <a href="javascript:void(0)" value="" key="gzjy">不限</a>
                            <a href="javascript:void(0)" value="无限经验" key="gzjy">无限经验</a>
                            <a href="javascript:void(0)" value="1-3年" key="gzjy">1-3年</a>
                            <a href="javascript:void(0)" value="3-5年" key="gzjy">3-5年</a>
                            <a href="javascript:void(0)" value="5-10年" key="gzjy">5-10年</a>
                            <a href="javascript:void(0)" value="10年以上" key="gzjy">10年以上</a>
                        </td>
                    </tr>
                    <tr>
                        <td width="10%" class="gray">学历要求：</td>
                        <td>
                            <a href="javascript:void(0)" value="" key="zdxl">不限</a>
                            <a href="javascript:void(0)" value="初中及以下" key="zdxl">初中及以下</a>
                            <a href="javascript:void(0)" value="高中/中技/中专"  key="zdxl">高中/中技/中专</a>
                            <a href="javascript:void(0)" value="大专"  key="zdxl">大专</a>
                            <a href="javascript:void(0)" value="本科"  key="zdxl">本科</a>
                            <a href="javascript:void(0)" value="硕士"  key="zdxl">硕士</a>
                            <a href="javascript:void(0)" value="博士"  key="zdxl">博士</a>
                        </td>
                    </tr>
                    <tr>
                        <td width="10%" class="gray">工作类型：</td>
                        <td>
                            <a href="javascript:void(0)" value="" key="xinzi">不限</a>
                            <a href="javascript:void(0)" value="全职" key="xinzi">全职</a>
                            <a href="javascript:void(0)" value="兼职" key="xinzi">兼职</a>
                            <a href="javascript:void(0)" value="实习" key="xinzi">实习</a>
                        </td>
                    </tr>
                    <tr>
                        <td width="10%" class="gray">公司规模：</td>
                        <td>
                            <a href="javascript:void(0)" value="" key="gsgm">不限</a>
                            <a href="javascript:void(0)" value="少于50人" key="gsgm">少于50人</a>
                            <a href="javascript:void(0)" value="50-100人" key="gsgm">50-100人</a>
                            <a href="javascript:void(0)" value="150-500人" key="gsgm">150-500人</a>
                            <a href="javascript:void(0)" value="500-1000人" key="gsgm">500-1000人</a>
                            <a href="javascript:void(0)" value="千人以上" key="gsgm">千人以上</a>
                        </td>
                    </tr>
                    <tr>
                        <td width="10%" class="gray">薪资福利：</td>
                        <td>
                            <a href="javascript:void(0)" value="" key="xzfl">不限</a>
                            <a href="javascript:void(0)" value="五险一金" key="xzfl">五险一金</a>
                        </td>
                    </tr>
                    <tr>
                        <td width="10%" class="gray">发布时间</td>
                        <td>
                            <a href="javascript:void(0)" value="" key="create_time">不限</a>
                            <a href="javascript:void(0)" value="今天" key="create_time">今天</a>
                            <a href="javascript:void(0)" value="最近三天" key="create_time">最近三天</a>
                            <a href="javascript:void(0)" value="最近一周" key="create_time">最近一周</a>
                            <a href="javascript:void(0)" value="最近一月" key="create_time">最近一月</a>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="blank2">
                <a href="__URL__recruit">重置筛选条件</a>
                <!--<a href="#">收起筛选条件</a>-->
            </div>
            <div class="blank3">
                <div class="list">
                    <div class="tab">
                        <div class="selection">
                            <div class="sel">发布时间</div>
                        </div>
                        <div class="lect" title="最新职位">
                            <table>
                                <foreach name="list" item="vo">
                                <tr>
                                    <th style="width:406px;">
                                        <a href="__URL__recruit_detail?id={$vo.pos_id}">{$vo.name}（{$vo.xzfl}）</a>
                                        <img src="__PUBLIC__/images/icons/hot.jpg" alt="热门">
                                        <img src="__PUBLIC__/images/icons/fast.jpg" alt="急聘"></th>
                                    <th style="width:327px;">{$vo.company}</th>
                                    <th style="width:154px;">{$vo.place}</th>
                                    <th style="width:190px;" class="red">{$vo.salary}/月</th>
                                    <th>{$vo.update_time}</th>
                                    <!--<th>{$vo.create_time|date='Y-m-d',###}</th>-->
                                 </tr>
                                </foreach>
                            </table>
                        </div>
                    </div>
                    <div class="pager">
                        <if condition="$page gt 1">
                            <a href="__URL__recruit?{$basePath}{$page-1}">上一页</a>
                        </if>
                        <for name="value" start="1" end="$count+1">
                            <if condition="$page eq $value">
                                <a href="__URL__recruit?{$basePath}{$value}" style="background-color: #e54141; color: #fff">{$value}</a>
                            </if>
                            <if condition="$page neq $value">
                                <a href="__URL__recruit?{$basePath}{$value}">{$value}</a>
                            </if>
                        </for>
                        <if condition="$page lt $count">
                            <a href="__URL__recruit?{$basePath}{$page+1}">下一页</a>
                        </if>
                        <span>共{$count}页 ,</span>
                        到第<input type="text" id="pagenum" value="{$page}"> 页
                        <input class="submit" type="button" value="确定" onclick="return validate()"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<style>
  .afont{
      color:red;
  }
</style>
<script>
    $(function(){
        //关键字加样式
        var url = decodeURIComponent(window.location.search);
        url = url.substring(1,window.location.search.length);
        var urlValue = url.split("&");

        var aObject = $(".table_style_dashed a");
        for(i=0;i<aObject.length ;i++ ){
            for(j=0;j<urlValue.length ;j++ ){
                var keyValue = urlValue[j].split("=");
                if($(aObject[i]).attr("key")==keyValue[0] && $(aObject[i]).attr("value")==keyValue[1]){
                    $(aObject[i]).addClass("afont");
                }
            }
        }

        //url拼凑
        $(".table_style_dashed a").click(function(){
            var element = $(this).attr("key")+"="+$(this).attr("value");
            if(window.location.search){
                if(window.location.search.indexOf($(this).attr("key")) > 0 )
                {
                    var url = decodeURIComponent(window.location.search);
                    url = url.substring(1,window.location.search.length);
                    var urlValue = url.split("&");
                    for(i=0;i<urlValue.length ;i++ ){
                        if(urlValue[i].indexOf($(this).attr("key"))>=0){
                            if(!$(this).attr("value")){
                                if(url.indexOf($(this).attr("key"))==0){
                                    url=url.replace(urlValue[i],"");
                                }else{
                                    url=url.replace("&"+urlValue[i],"");
                                }
                            }else{
                                if(urlValue[i].indexOf($(this).attr("key"))==0){
                                    url=url.replace(urlValue[i],element);
                                }else{
                                    url=url.replace("&"+urlValue[i],element);
                                }
                            }
                        }
                    }
                    url = encodeURIComponent(url);
                    window.location.href="/recruit?"+url;
                }else if($(this).attr("value")){

                    var url = decodeURIComponent(window.location.search);
                    url = url.substring(1,window.location.search.length)
                    url = encodeURIComponent(url+"&"+element);
                    window.location.href="/recruit?"+url;
                }
            }else{
                var url = encodeURIComponent(element);
                window.location.href="/recruit?"+url;
            }
        });
    });

    //页码跳转
    function validate() {
        if ($("#pagenum").val() > {$count}) {
            return false;
        } else {
            window.location.href = "__URL__recruit?{$basePath}"+$("#pagenum").val();
        }
    }
</script>

<include file="Public:footer" />
